
<div id="actionbar">
    <span url="{:url('info.cate/edit')}" class="button button-blue fn-cp win"> <i class="iconfont icon-add_icon"></i>创建主题</span>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w40 fn-tac"><input type="checkbox" onclick="CheckAll(this)"></th>
            <th class="w60 fn-tac">排序</th>
            <th class="w160">名称</th>
            <th class="w160">别名</th>
            <th>模板库</th>
            <th class="w140">更新时间</th>
            <th class="w160">操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="fn-tac"><input name="sub" type="checkbox" value="{$vo.id}"></td>
            <td class="fn-tac"><input name="sort" class="fn-tac w40 input input-mini" type="text" value="{$vo['sort']}" id="{$vo.id}" /></td>
            <td>{$vo.title}</td>
            <td>{$vo.name}</td>
            <td>{$vo.tpl.name?$vo.tpl.name:'默认模板'}</td>
            <td>{$vo.update_time|date='Y-m-d H:i'}</td>
            <td class="button-group">
                <span class="button win fn-cp" url="{:url('info.cate/edit',['id'=>$vo.id])}"><i class="iconfont icon-edit"></i>编辑</span>
                <a class="button isDel" url="{:url('info.cate/delete',['id'=>$vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
    Do('base', 'layer', function () {
        $('.isDel').isDel();
        $('.win').win({area:['600px', '300px'],reload:1});
        sort("{:url('info.cate/sort')}");
    })
</script>